package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line = "hello123world456java789";
        String[] data =line.split("\\d+");
        System.out.println(Arrays.toString(data));

        line = "123.345.456";
        data = line.split("\\.");
        System.out.println(Arrays.toString(data));

        line = "=123==345===123=====";
        data = line.split("=");
        System.out.println(Arrays.toString(data));
        System.out.println(data.length);
    }
}
